package com.dxf.chepter05;

/**
 *
 */
public class T59_java复写字段 {
    public static void main(String[] args) {
        Sub sub = new Sub();
        System.out.println(sub.s);// sub

        Super sub2 = new Sub();
        System.out.println(sub2.s);// Super
    }
}


class Super {
    String s = "Super";
}

class Sub extends Super {
    String s = "sub";
}
